<#assign imports = []>
<#list columns?filter(c -> c.list) as column>
    <#if !(imports?seq_contains(column.javaType.fullyQualifiedName))>
        <#assign imports += [column.javaType.fullyQualifiedName]>
    </#if>
</#list>
<#-- 计算出需要导入的import -->
<#assign primaryKeyType = columns?filter(column -> column.primary)?first.javaType>
<#--  拿到主键类型 -->
package ${packageName}.service;

import lombok.Data;
<#list imports as import>
    import ${import};<#--  导入 -->
</#list>

/**
 * ${className}创建数据传输对象
 * 用于创建${className}实体时传递必要的属性值
 */
@Data
public class Create${className}Dto {

<#list columns?filter(c -> c.primary == false)?filter(c -> c.insert == true) as column>
    /**
     * ${column.columnComment}
     */
    private ${column.javaType} ${column.javaField};

</#list>
}
